package studio.raptor.ddal.core.log.common;


/**
 * 类名称 LogClientConstant
 * 日志服务常用固定变量
 */
public class LogClientConstant {

	/**
	 * 日志记录总开关
	 */
	public static String logSwitch = CommonMethodUtil.getValueByProCode( "log.server.switch","n" );
	public static final String appName = CommonMethodUtil.getValueByProCode( "log.server.app.name","" );
	public static final String serverUrl = CommonMethodUtil.getValueByProCode( "log.server.url","");
	public static final int timeout = Integer.parseInt( CommonMethodUtil.getValueByProCode( "log.server.timeout","5000" ).trim() );
	public static final int threadNum = Integer.parseInt( CommonMethodUtil.getValueByProCode( "log.thread.num","1" ).trim() );
	public static final int queueDepth = Integer.parseInt( CommonMethodUtil.getValueByProCode( "log.queue.depth","5000" ).trim() );
	public static final int maxConnection = Integer.parseInt( CommonMethodUtil.getValueByProCode( "log.http.connection.max","100" ).trim() );

	/**
	 * cpu等监控信息采集开关及周期
	 */
	public static final String monitorSwitch = CommonMethodUtil.getValueByProCode( "log.monitor.switch","n" );
	public static final int monitorTime = Integer.parseInt( CommonMethodUtil.getValueByProCode( "log.monitor.time","30000" ).trim() );


	/**
	 * 日志类型 SQL处理
	 */
	public static final String LOG_TYPE_SQL_PROCESS="LOG_TYPE_SQL_PROCESS";
	/**
	 * 日志类型 连接池
	 */
	public static final String LOG_TYPE_CONN_POOL="LOG_TYPE_CONN_POOL";


}
